#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#define X 0
#define Y 1

void error(char *msg);
int startup(int port);
void mainloop();
void *client_communication();
int proc_buffer(int socknum, char *sendbuffer, char *buffer);
int broadcastingThreadFunction(char *sendbuffer);
